package com.ynyyrj.school.service;

import com.ynyyrj.school.mapper.MajMapper;
import com.ynyyrj.school.pojo.major;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajServiceImp implements MajService{

    @Autowired
    MajMapper majMapper;
    @Override
    public int Majnum(int school_aid) {
        return majMapper.Majnum(school_aid);
    }

    @Override
    public int updaMajor(major major) {
        return majMapper.updaMajor(major);
    }

    @Override
    public int addMajor(major major) {
        return majMapper.addMajor(major);
    }

    @Override
    public int delMajor(String name,int school_aid) {
        return majMapper.delMajor(name,school_aid);
    }

    @Override
    public List<String> GetName(int school_aid) {
        return majMapper.GetName(school_aid);
    }

    @Override
    public int selectMid(String name ,int school_aid) {
        return majMapper.selectMid(name,school_aid);
    }
}
